home *** CD-ROM | disk | FTP | other *** search
/ PC-Blue - MS DOS Public Domain Library / PC-Blue MS-DOS Public Domain Library - NYACC.iso / vol062 / shell.doc < prev    next >
Encoding:
Text File  |  1987-01-13  |  4.5 KB  |  138 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. SHELL_____SHELLSHELLSHELL_COMMAND_______COMMANDCOMMANDCOMMAND
  8.  
  9.  
  10.  
  11. Function________FunctionFunctionFunction
  12.  
  13.              The SHELL command allows those users experiencing dif-
  14.              ficulty using the  DOS SHELL= option in  CONFIG.SYS to
  15.              actually  change the  name and  drive used  by DOS  to
  16.              reload COMMAND.COM (such as after  execution of a com-
  17.              piled BASIC program).
  18.  
  19.  
  20. BACKGROUND__________BACKGROUNDBACKGROUNDBACKGROUND
  21.  
  22.              From personal experience, I have  not been able to use
  23.              the SHELL= option as advertised in the DOS 2.0 manual.
  24.              Whenever a  shell statement is present  in CONFIG.SYS,
  25.              DOS seems to check at initialization whether the indi-
  26.              cated file exists but a  SET command issued afterwards
  27.              shows:
  28.  
  29.                    COMPSPEC=A:\COMMAND.COM
  30.  
  31.              which is  what normally  shows when  you don't  have a
  32.              CONFIG.SYS file or did not  include a SHELL= option in
  33.              CONFIG.SYS. A side effect seems to be that the AUTOEX-
  34.              EC.BAT processing is also skipped whenever you include
  35.              a SHELL= option.  Aside from that, DOS  always reloads
  36.              COMMAND.COM from my  A drive no matter what  I try. (I
  37.              want SHELL=D:\COMMAND.COM).
  38.  
  39.              As far as I can tell this is a bug (perhaps related to
  40.              the fact that I run a non-IBM 23 Meg harddisk). Rather
  41.              than trying to fix it, the SHELL.COM program was writ-
  42.              ten, which  replaces the  string which  DOS uses  as a
  43.              filename (INT 21H AH=3D) to reload the command proces-
  44.              sor whenever necessary. The location  of the string in
  45.              DOS 2.0 is at hex offset 939 in the segment pointed to
  46.              by hex interrupt 21.
  47.  
  48.  
  49. Syntax______SyntaxSyntaxSyntax
  50.  
  51.  
  52. +-----------------------------------------------------------------+
  53. |                                                                 |
  54. |     SHELL                                                       |
  55. |     or                                                          |
  56. |     SHELL  [d:][path]filename[.ext]                             |
  57. |                                                                 |
  58. +-----------------------------------------------------------------+
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                                                   1
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. Operation_________OperationOperationOperation
  74.  
  75.              If you specify the SHELL command without operands, the
  76.              current shell  name is  displayed. If  you specify  an
  77.              operand, it will  replace the current shell  name. The
  78.              shell  name is  the name  of  the file  that DOS  will
  79.              reload whenever  the transient portion  of COMMAND.COM
  80.              (or replacement) is overlaid in memory.
  81.  
  82.  
  83. Notes_____NotesNotesNotes
  84.  
  85.              If the  specified file  does not  exist, you  will get
  86.              into a problem the next time  that DOS needs to reload
  87.              the command processor. DOS will prompt you to insert a
  88.              diskkette containing COMMAND.COM into drive A, regard-
  89.              less  of the  name of  the current  shell. You  should
  90.              interpret this prompt to actually  mean that the shell
  91.              name you specified does not  exist. If you specified a
  92.              floppy drive, you may be  able to switch diskettes. In
  93.              all other cases, your only recourse is to reboot DOS.
  94.  
  95.              Also, the SET command always displays:
  96.  
  97.                       COMSPEC=A:\COMMAND.COM
  98.  
  99.              regardless of  the actual  shell being  used. Use  the
  100.              SHELL command  without operands to display  the actual
  101.              shell name.
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                                                                   2
  131.  
  132.  
  133.  
  134.                                2
  135.  
  136.  
  137.  
  138.